class ResultVo{
  static success(data){
    return {
      code: 0,
      message: 'success',
      data
    }
  }

  static successNull() {
    return {
      code: 0,
      message: 'success'
    }
  }

  static fail(code, message, error = {}) {
    return {
      code,
      message,
      error
    }
  }

  static failNull(code, message) {
    return {
      code,
      message
    }
  }
}

module.exports = ResultVo